package com.ice.work.moment.oauth.dao.resource;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ice.work.moment.facade.user.model.Resource;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description resource mapper
 * @Author DELL
 * @Create 2019-01-10
 * @Since 1.0.0
 */
public interface IResourceMapper extends BaseMapper<Resource> {

    /**
     * 查询用户的所有资源权限
     *
     * @param userId
     * @param dataStatus
     * @return
     */
    List<Resource> findByUserIdAndDataStatus(@Param("userId") Long userId, @Param("dataStatus") Integer dataStatus);

}
